<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>


<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>

<body style="background-color: #888">
    <script>
        function Class10() {
            this.showSub = function(a, b) {
                console.log(a - b);

            }
        }

        function Class11() {
            this.showAdd = function(a, b) {
                console.log(a + b);

            }
        }

        function Class2() {
            Class10.call(this)
            Class11.call(this)
        }

        var obj = new Class2()
        obj.showSub(8, 5)
        obj.showAdd(7, 10)
    </script>
</body>

</html>